/*
 * $Id: ModuleCategory.java,v 1.3 2013/07/27 14:18:45 administrator Exp $
 */
package com.roc.pojo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @author $Author: administrator $
 * @version $Revision: 1.3 $
 */
@Entity
@Table(name = "t_category")
public class ModuleCategory extends BaseBean implements Serializable{
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CATEGORY_seq")
	@SequenceGenerator(name = "CATEGORY_seq", sequenceName = "CATEGORY_seq", allocationSize = 10, initialValue = 1)
	private java.lang.Long seq;
	@Column(name="MODULE_CATEGORY_CODE",nullable=false)
	private java.lang.String moduleCategoryCode;
	@Column(name="MODULE_CATEGORY_NAME",nullable=false)
	private java.lang.String moduleCategoryName;
	@Column(name="DISPLAY_INDEX",nullable=false)
	private java.lang.Long displayIndex;
	@Column(name="CATEGORY_DESC")
	private java.lang.String categoryDesc;

	@Transient
	private List<Module> modules = new ArrayList<Module>();
	
	@Transient
	private List<List<Module>> displayModules = new ArrayList<List<Module>>();

	

	/**
	 * @return the seq
	 */
	public java.lang.Long getSeq() {
		return seq;
	}

	/**
	 * @param seq the seq to set
	 */
	public void setSeq(java.lang.Long seq) {
		this.seq = seq;
	}

	/**
	 * @return the moduleCategoryCode
	 */
	public java.lang.String getModuleCategoryCode() {
		return moduleCategoryCode;
	}

	/**
	 * @param moduleCategoryCode the moduleCategoryCode to set
	 */
	public void setModuleCategoryCode(java.lang.String moduleCategoryCode) {
		this.moduleCategoryCode = moduleCategoryCode;
	}

	/**
	 * @return the moduleCategoryName
	 */
	public java.lang.String getModuleCategoryName() {
		return moduleCategoryName;
	}

	/**
	 * @param moduleCategoryName the moduleCategoryName to set
	 */
	public void setModuleCategoryName(java.lang.String moduleCategoryName) {
		this.moduleCategoryName = moduleCategoryName;
	}

	/**
	 * @return the displayIndex
	 */
	public java.lang.Long getDisplayIndex() {
		return displayIndex;
	}

	/**
	 * @param displayIndex the displayIndex to set
	 */
	public void setDisplayIndex(java.lang.Long displayIndex) {
		this.displayIndex = displayIndex;
	}

	/**
	 * @return the categoryDesc
	 */
	public java.lang.String getCategoryDesc() {
		return categoryDesc;
	}

	/**
	 * @param categoryDesc the categoryDesc to set
	 */
	public void setCategoryDesc(java.lang.String categoryDesc) {
		this.categoryDesc = categoryDesc;
	}

	


	/**
	 * @param modules the modules to set
	 */
	public void setModules(List<Module> modules) {
		this.modules = modules;
	}

	/**
	 * @return the modules
	 */
	public List<Module> getModules() {
		return modules;
	}

	

	
	public List<List<Module>> getDisplayModules() {
		return displayModules;
	}

	public void setDisplayModules(List<List<Module>> displayModules) {
		this.displayModules = displayModules;
	}
	
}
